package com.itheima.service;

import com.itheima.common.Com.ShoppingCart;
import com.itheima.common.vo.ShoppingCartDto;
import com.itheima.common.vo.ShoppingCartVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ShoppingCartService {
    List<ShoppingCart> getAll();

    ShoppingCartVo save(ShoppingCart shoppingCart);

    boolean delete();

    boolean deleteId(ShoppingCartDto shoppingCartDto);

}
